﻿using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class GetPath : MonoBehaviour {

    public string path;
	
	void Start () {
        path = name;
        Transform tmp = transform;
        while (tmp.parent)
        {
            tmp = tmp.parent;
            path = tmp.name + "/" + path;
        }
    }
	
}
